package com.artifex.mupdf.viewer;

import android.view.View;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Locale;

public class SettingsItem {

    public static enum TYPE {
        SETTING,
        ENGINE,
        LANGUAGE,
        FROM,//原文语言
        TO,//翻译目标语言
        VOICE,
        fSPEED,//原文阅读速度
        tSPEED,//翻译阅读速度
        HEADER,
        DIVIDER,
        TOGGLE,
        NONE,
        PAGE,
        ENCODE
    }

    public String name;
    public String packageName;
    public TYPE type = TYPE.NONE;
    public TYPE category = TYPE.NONE;
    public boolean selected;
    public Locale language;
    public int visibility = View.VISIBLE;
    public float speed;
    public String encode;

    public SettingsItem(){}

    public SettingsItem(String name, String packageName, TYPE type, TYPE category) {
        this.name = name;
        this.packageName = packageName;
        this.type = type;
        this.selected = false;
        this.category = category;
    }
}